<div id="maincontent">
	<div id="content">
    <div class="box1">
      <h1><?php echo lico_lang('general', 'massaddmachine.page.title'); ?></h1>
        <div class="description"><?php echo lico_lang('general', 'massaddmachine.page.description'); ?></div>
      
<?php
  $out .= "     <form name=\"addmachine\" action=\"/success.html\" method=\"post\">\n";
  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'createnum').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[createnum]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'country').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[country]\" size=\"3\" maxlength=\"2\" value=\"\"/></span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'purpose').":</label>\n";
  $out .= "         <span class=\"forminput checkpurpose\">\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'workstation')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"workstation\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'www.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"www.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'ftp.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"ftp.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'mail.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"mail.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'dns.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"dns.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'file.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"file.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'database.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"database.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'router')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"router\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'firewall')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"firewall\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'toy')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"toy\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'learning')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"learning\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'programming')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"programming\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'game.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"game.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'media.center')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"media.center\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"checkbox\">\n";
  $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'other.server')."</label>";
  $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"other.server\"/>\n";
  $out .= "           </div>\n";
  $out .= "           <div class=\"inputbox\">\n";
  $out .= "             <label class=\"inputboxlabel\">".lico_lang('general', 'other.purpose')."</label>";
  $out .= "             <input class=\"formcheckalternative\" name=\"lico[alternatepurpose]\" size=\"55\" maxlength=\"40\"/>\n";
  $out .= "           </div>\n";
  $out .= "         </span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'sysclass').":</label>\n";
  $out .= "         <span class=\"forminput\">\n";
  $out .= "           <select name=\"lico[sysclass]\">\n";
  $out .= "             <option value=\"\">-- ".lico_lang('general', 'not.specified')." --</option>\n";
  $out .= "             <option value=\"smartphone\">".lico_lang('general', 'smartphone')."</option>\n";
  $out .= "             <option value=\"handheld\">".lico_lang('general', 'handheld')."</option>\n";
  $out .= "             <option value=\"laptop\">".lico_lang('general', 'laptop')."</option>\n";
  $out .= "             <option value=\"workstation\">".lico_lang('general', 'workstation')."</option>\n";
  $out .= "             <option value=\"server\">".lico_lang('general', 'server')."</option>\n";
  $out .= "             <option value=\"embedded\">".lico_lang('general', 'embedded')." system</option>\n";
  $out .= "             <option value=\"virtualmachine\">".lico_lang('general', 'virtualmachine')." system</option>\n";
  $out .= "             <option value=\"other\">".lico_lang('general', 'other')."</option>\n";
  $out .= "           </select>\n";
  $out .= "         </span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'cpu').":</label>\n";
  $out .= "         <span class=\"forminput\"><input id=\"cpuinput\" type=\"text\" name=\"lico[cpu]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'cpunum').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[cpunum]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'arch').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[arch]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'kernel').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[kernel]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'network').":</label>\n";
  $out .= "         <span class=\"forminput\">\n";
  $out .= "           <select name=\"lico[network]\">\n";
  $out .= "             <option value=\"none\" selected=\"selected\">".lico_lang('general', 'none')."</option>\n";
  $out .= "             <option value=\"ethernet\">".lico_lang('general', 'ethernet')."</option>\n";
  $out .= "             <option value=\"ppp\">".lico_lang('general', 'ppp')."</option>\n";
  $out .= "             <option value=\"slip\">".lico_lang('general', 'slip')."</option>\n";
  $out .= "             <option value=\"ax.25\">".lico_lang('general', 'ax.25')."</option>\n";
  $out .= "             <option value=\"isdn\">".lico_lang('general', 'isdn')."</option>\n";
  $out .= "             <option value=\"cable\">".lico_lang('general', 'cable')."</option>\n";
  $out .= "             <option value=\"token\">".lico_lang('general', 'token')."</option>\n";
  $out .= "             <option value=\"uucp\">".lico_lang('general', 'uucp')."</option>\n";
  $out .= "             <option value=\"wireless\">".lico_lang('general', 'wireless')."</option>\n";
  $out .= "             <option value=\"atm\">".lico_lang('general', 'atm')."</option>\n";
  $out .= "             <option value=\"adsl\">".lico_lang('general', 'adsl')."</option>\n";
  $out .= "             <option value=\"dsl\">".lico_lang('general', 'dsl')."</option>\n";
  $out .= "             <option value=\"sdsl\">".lico_lang('general', 'sdsl')."</option>\n";
  $out .= "             <option value=\"other\">".lico_lang('general', 'other')."</option>\n";
  $out .= "           </select>\n";
  $out .= "         </span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'distribution').":</label>\n";
  $out .= "         <span class=\"forminput\">\n";
  $out .= "           <select name=\"lico[distribution]\">\n";
  $out .= "             <option value=\"unknown\">".lico_lang('general', 'unknown')."</option>\n";
  for ($d=0; $d<count($lico['distributions']); $d++) {
      $out .= "             <option value=\"".$lico['distributions'][$d]."\">".$lico['distributions'][$d]."</option>\n";
  }
  $out .= "             <option value=\"other\">".lico_lang('general', 'other')."</option>\n";
  $out .= "           </select>\n";
  $out .= "         </span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'distribution.version').":</label>\n";
  $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[distversion]\" value=\"\"/></span>\n";
  $out .= "       </div>\n";
  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'mailer').":</label>\n";
  $out .= "         <span class=\"forminput\">\n";
  $out .= "           <select name=\"lico[mailer]\">\n";
  $out .= "             <option value=\"none\" selected=\"selected\">".lico_lang('general', 'none')."</option>\n";
  $out .= "             <option value=\"unknown\">".lico_lang('general', 'unknown')."</option>\n";
  $out .= "             <option value=\"Sendmail\">Sendmail</option>\n";
  $out .= "             <option value=\"Smail\">Smail</option>\n";
  $out .= "             <option value=\"Qmail\">Qmail</option>\n";
  $out .= "             <option value=\"Exim\">Exim</option>\n";
  $out .= "             <option value=\"Postfix\">Postfix</option>\n";
  $out .= "             <option value=\"other\">".lico_lang('general', 'other')."</option>\n";
  $out .= "           </select>\n";
  $out .= "         </span>\n";
  $out .= "       </div>\n";
    
  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_hostname').":</label>\n";
  $out .= "         <span class=\"forminput\"><select name=\"lico[publish_hostname]\"><option value=\"NO\">NO</option><option value=\"YES\">YES</option></select></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_versions').":</label>\n";
  $out .= "         <span class=\"forminput\"><select name=\"lico[publish_versions]\"><option value=\"NO\">NO</option><option value=\"YES\">YES</option></select></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem even\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_cpuinfo').":</label>\n";
  $out .= "         <span class=\"forminput\"><select name=\"lico[publish_cpuinfo]\"><option value=\"NO\">NO</option><option value=\"YES\">YES</option></select></span>\n";
  $out .= "       </div>\n";

  $out .= "       <div class=\"formitem odd\">\n";
  $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_sizeinfo').":</label>\n";
  $out .= "         <span class=\"forminput\"><select name=\"lico[publish_sizeinfo]\"><option value=\"NO\">NO</option><option value=\"YES\">YES</option></select></span>\n";
  $out .= "       </div>\n";
  
  $out .= "       <div class=\"formsubmit formitem\">\n";
  $out .= "         <input type=\"hidden\" name=\"lico[action]\" value=\"massaddmachines1\"/>\n";
  $out .= "         <span class=\"formsubmit-button\"><input type=\"submit\" name=\"lico[submit]\" value=\"".lico_lang('profile', 'save.massmachine')."\"/></span>\n";
  $out .= "       </div>\n";
  $out .= "     </form>\n";
  $out .= "     <script type=\"text/javascript\"> \$('#cpuinput').autocomplete(\"/ajax.php\"); </script>\n";
  echo $out;
 ?>
      
    </div>
  </div>
</div>
